module.exports = {
  apps: [
    {
      name: 'prodenv',
      interpreter: './node_modules/.bin/ts-node',
      interpreter_args: '-r ./tsconfig.json',
      script: './src/server.ts',
      instances: 1,
      exec_mode: 'fork',
      watch: false,
      out_file: './logs/app.log',
      error_file: './logs/err.log',
      log_date_format: 'YYYY-MM-DD HH:mm Z',
      combine_logs: true,
      listen_timeout: 8000,
      kill_timeout: 1600,
      env: {
        NODE_ENV: 'production',
      },
    },
  ],
};
